﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZX.OA.Model;
using ZX.OA.DAL;

namespace ZX.OA.BLL
{
    public class MessageInfoBLL
    {
        MessageInfoDAL dal = new MessageInfoDAL();
        public List<MessageInfo> ShowMessage()
        {
            return dal.ShowMessage();
        }
        public int AddMessage(MessageInfo m)
        {
            return dal.AddMessage(m);
        }
        public int DeleteMessage(int id)
        {
            return dal.DeleteMessage(id);
        }
        public MessageInfo GetMessageByMessageID(int messageid)
        {
            return dal.GetMessageByMessageID(messageid);
        }
        public int UpdMessageByMessageID(MessageInfo m)
        {
            return dal.UpdMessageByMessageID(m);
        }
        /// <summary>
        /// 修改信息
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        public int UpdateMessage(MessageInfo m)
        {
            return dal.UpdateMessage(m);
        }
    }
}
